import requests


class IHRMLoginAPI:
    @classmethod
    def login(cls, data):
        url = 'http://ihrm2-test.itheima.net/api/sys/login'

        headers = {
            "Content-Type": "application/json"
        }

        r = requests.post(url, headers=headers, json=data)

        return r

